﻿if (!FrameDisplay) {
    FrameDisplay = {};
}
if (!FrameDisplay.Services) {
    FrameDisplay.Services = {};
}


//
// FrameDisplay.Services.InputControl
//

FrameDisplay.Services.InputControl = {};

FrameDisplay.Services.InputControl.moveMouse = function(deltaX, deltaY, absolute) {
    var absoluteStr = absolute ? 'true' : 'false';
    var mouseMoveUrl = FrameDisplay.baseUrl + '/FrameDisplayService/MouseMove?k=' + FrameDisplay.accessCode
        + '&dx=' + deltaX + '&dy=' + deltaY + '&a=' + absoluteStr;

    FrameDisplay.ajaxGet(mouseMoveUrl);
};

FrameDisplay.Services.InputControl.moveMouse = function(deltaX, deltaY, absolute) {
    var absoluteStr = absolute ? 'true' : 'false';
    var mouseMoveUrl = FrameDisplay.baseUrl + '/FrameDisplayService/MouseMove?k=' + FrameDisplay.accessCode
        + '&dx=' + deltaX + '&dy=' + deltaY + '&a=' + absoluteStr;

    FrameDisplay.ajaxGet(mouseMoveUrl);
};